package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ReferenceType implements DataType, TargetSubtype {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName referencedType;
    private ScopeClause scopeClause;

    public ReferenceType(int beginIndex, int endIndex, SchemaQualifiedName referencedType, ScopeClause scopeClause) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.referencedType = referencedType;
        this.scopeClause = scopeClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getReferencedType() {
        return referencedType;
    }

    public ScopeClause getScopeClause() {
        return scopeClause;
    }

}
